<%--
  Created by IntelliJ IDEA.
  User: sc
  Date: 2020/7/30
  Time: 16:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>首页</title>

    <style type="text/css">
        #first{
            margin:0 auto;
            width:460px;
        }
        a{
            text-decoration:none;
            color:blue;
        }
    </style>
</head>
<body>
<div id="first">
    <table border="1" cellspacing="1" cellpadding="5">
        <tr>
            <td colspan="5" align="center">
                <select>
                    <option selected="selected">书名</option>
                    <option>作者</option>
                    <option>出版社</option>
                </select>
                &nbsp;&nbsp;
                <input type="text" name="condition"/>
                &nbsp;&nbsp;
                <input type="button" name="button" value="提交"/>
            </td>
        </tr>
        <tr>
            <td align="center">书名</td>
            <td align="center">作者</td>
            <td align="center">出版社</td>
            <td align="center">页数</td>
            <td align="center">价格</td>
        </tr>
        <tr><td colspan="5" align="right"><a href="add.jsp">增加新书</a></td></tr>
        <c:forEach var="b" items="${list}" varStatus="i">
            <tr>
                <td align="left">${b.bookName}</td>
            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>
